<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 01:21:39
 * @LastEditTime: 2023-11-11 15:44:11
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Traits;

use App\Models\Employee;
use App\Models\User;

trait CommonUserTrait
    {
    public function creator()
        {
        return $this->belongsTo(Employee::class);
        }
    public function in_creator()
        {
        return $this->belongsTo(Employee::class);
        }

    public function updator()
        {
        return $this->belongsTo(Employee::class);
        }
    public function deletor()
        {
        return $this->belongsTo(Employee::class);
        }
    public function auditor()
        {
        return $this->belongsTo(Employee::class);
        }
    public function fauditor()
        {
        return $this->belongsTo(Employee::class);
        }
    public function employee()
        {
        return $this->belongsTo(Employee::class);
        }
    public function singler()
        {
        return $this->belongsTo(Employee::class);
        }
    public function salesman()
        {
        return $this->belongsTo(Employee::class);
        }
    /**
     * 报色人
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     * @author sunkaiyuan
     */
    public function order_user()
        {
        return $this->belongsTo(Employee::class);
        }
    /**
     * 刷卡人
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     * @author sunkaiyuan
     */
    public function swipor()
        {
        return $this->belongsTo(Employee::class);
        }
    /**
     * 对样人
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     * @author sunkaiyuan
     */
    public function verifor()
        {
        return $this->belongsTo(Employee::class);
        }

    public function took()
        {
        return $this->belongsTo(Employee::class);
        }
    public function admin()
        {
        return $this->belongsTo(Employee::class);
        }
    public function storageauditor()
        {
        return $this->belongsTo(Employee::class);
        }
    }
